package org.comeday.valid.controller;

import jakarta.validation.Valid;
import lombok.extern.java.Log;
import org.comeday.common.CommonResult;
import org.comeday.valid.vo.AuthLoginReqVO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Program Name: spring_study
 * <p>
 * Description:
 * <p>
 * Created by hkrong on 2024/11/26 11:32
 *
 * @author hkrong
 * @version 1.0
 */
@RestController
@RequestMapping("login")
@Log
public class LoginValidController {

    @PostMapping("validInfo")
    public CommonResult loginValid(@RequestBody @Valid AuthLoginReqVO vo) {
        log.info("i coming !!!");
        return CommonResult.success();
    }
}
